package com.dushan.boot.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author：朗朗乾坤
 * @Package：com.dushan.boot.common.pojo
 * @Project：DuShanHui
 * @name：SortingField
 * @Date：2024/1/24 18:48
 * @Filename：SortingField
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SortingField implements Serializable {
    /**
     * 顺序 - 升序
     */
    public static final String ORDER_ASC = "asc";
    /**
     * 顺序 - 降序
     */
    public static final String ORDER_DESC = "desc";

    /**
     * 字段
     */
    private String field;
    /**
     * 顺序
     */
    private String order;
}
